package com.innover.service.impl;

import com.innover.common.service.impl.BaseServiceImpl;
import com.innover.domain.UserRecord;
import com.innover.service.UserRecordService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service("userRecordService")
@Transactional
public class UserRecordServiceImpl extends BaseServiceImpl implements UserRecordService {
    @Override
    public UserRecord queryByRecordPath(String recordPath) {
        List list=this.queryAll("from UserRecord u where u.recordPath like'%"+recordPath+"%'");
        if(null!=list&&list.size()>0){
            return (UserRecord)list.get(0);
        }
        return null;
    }
}